import React, { Component } from 'react'
import './Button.css';
export default class Button extends Component {

    static defaultProps = {
        type: ''
    }

    render() {
        //接收到 type 属性
        let {type} = this.props;
        return (
            <button onClick={this.props.onClick}  className={`mbtn ${type}`} style={this.props.style} >{this.props.children}</button>
        )
    }
}
